/**
 * Project Name:inonepay-api
 * File Name:HelloWorld.java
 * Package Name:com.inone.inonepay.api.controller
 * Date:2016��6��27������6:51:42
 * Copyright (c) 2016, www.zbj.com All Rights Reserved.
 *
*/

package com.inone.inonepay.api.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.client.RestTemplate;


/**
 * ClassName:HelloWorld <br/>
 * Function: TODO ��������. <br/>
 * Date: 2016��6��27�� ����6:51:42 <br/>
 * 
 * @author ��Զ��
 * @version
 * @since JDK 1.7
 * @see
 */
@Service
public class QueryService {
	public String SERVICE_NAME = "inonepay-order-service";
	RestTemplate restTemplate; 
			List<String> query() {
				return restTemplate.getForObject("http://"+SERVICE_NAME+"/user", List.class);
	}
}
